import pytest
from common import log_set,send_mail
import os

if __name__ == '__main__':
    log_set()
    pytest.main(["-s","testcase01.py","--alluredir=数据","--clean-alluredir"])
    os.system("allure generate 数据 -o 报告 --clean")
    send_mail(["log.txt","报告/index.html"])